import { IsString } from 'class-validator';

export class UserDto {
  _id: string;

  @IsString()
  username: string;

  @IsString()
  nickName: string;

  @IsString({ always: false })
  email?: string;

  @IsString()
  password: string;
}
